package kr.hkit.powerjava.homework3;

public class BookTest {
	public static void main(String[] args) {
		Book[] bk = new Book[3];
		bk[0] = new Novel(311, "aa", "zxc");
		bk[1] = new ScienceFiction(312, "ab", "zxcv");
		bk[2] = new Poet(311, "abc", "zxcvb");
		
		System.out.println(bk[0].equals(bk[1]));
		System.out.println(bk[0].equals(bk[2]));
		for (int i = 0; i < bk.length; i++) {
			System.out.println(bk[i]);
		}
		for (Book book : bk) {
			System.out.println("연체"+book.getLateFees(3));
		}
	}
}
